package com.huashi.dealer.commonEntity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 充值审核记录
 * 对应表：yoshop_user_recharge_review
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "充值审核记录")
public class UserRechargeReview extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "recharge_review_id", type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long rechargeReviewId;

    @TableField("user_id")
    @Schema(description = "用户ID")
    private Long userId;

    @TableField("store_user_id")
    @Schema(description = "后台充值ID")
    private Long storeUserId;

    @TableField("initial_review_id")
    @Schema(description = "初审人员ID")
    private Long initialReviewId;

    @TableField("initial_review_status")
    @Schema(description = "初审状态：0待审核 10审核通过 20已驳回")
    private Integer initialReviewStatus;

    @TableField("initial_review_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "初审时间(秒)")
    private Long initialReviewTime;

    @TableField("initial_review_reject_reason")
    @Schema(description = "初审驳回原因")
    private String initialReviewRejectReason;

    @TableField("check_id")
    @Schema(description = "复核人员ID")
    private Long checkId;

    @TableField("check_status")
    @Schema(description = "复核状态：0待复核 10复核通过 20已驳回")
    private Integer checkStatus;

    @TableField("check_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "复核时间(秒)")
    private Long checkTime;

    @TableField("check_reject_reason")
    @Schema(description = "复核驳回原因")
    private String checkRejectReason;

    @Schema(description = "充值方式：0基本账户 1返利账户 2核销账户")
    private Integer source;

    @Schema(description = "金额")
    private BigDecimal price;

    @Schema(description = "变更类型：inc增加 dec减少 final最终金额")
    private String mode;

    @Schema(description = "备注")
    private String remark;

    @TableField("wxapp_id")
    @Schema(description = "小程序ID")
    private Long wxappId;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间(秒)")
    private Long createTime;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间(秒)")
    private Long updateTime;
}


